home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / M / Lex.cpt / Lex / STDIO_LEXLIB.π folder / LEXECH.C next >
Text File  |  1990-06-04  |  1KB  |  42 lines

  1. /*
  2.   HEADER: CUG    nnn.nn;
  3.   TITLE:    LEX - A Lexical Analyser Generator
  4.   VERSION:       1.0 for IBM-PC
  5.   DATE:    Jan 30, 1985
  6.   DESCRIPTION:   A Lexical Analyser Generator. From UNIX
  7.   KEYWORDS:      Lexical Analyser Generator YACC C PREP
  8.   SYSTEM:    IBM-PC and Compatiables
  9.   FILENAME:      LEXECH.C
  10.   WARNINGS:      This program is not for the casual user. It will
  11.     be useful primarily to expert developers.
  12.   CRC:    N/A
  13.   SEE-ALSO:      YACC and PREP
  14.   AUTHORS:       Scott Guthery 11100 leafwood lane Austin, TX 78750
  15.   COMPILERS:     DESMET-C
  16.   REFERENCES:    UNIX Systems Manuals
  17. */
  18. /*
  19.  * lexech.c
  20.  *
  21.  * Bob Denny 28-Aug-82  Move stdio dependencies to lexerr(), lexget(),
  22.  *    lexech() and mapch(). This is one of 4 modules
  23.  *    in lexlib which depend upon the standard I/O package.
  24.  * Scott Guthery 20-Nov-83  Adapt for IBM PC & DeSmet C
  25.  */
  26. #define    STDIO_LEXLIB
  27.  
  28. #include <stdio.h>
  29. #include "lex.h"
  30.  
  31. extern char *llend, *llbuf;
  32.  
  33. void
  34. lexecho(fp)
  35. register FILE * fp;
  36. {
  37.     register char *lp;
  38.  
  39.     for (lp = llbuf; lp < llend;)
  40.         putc(*lp++, fp);
  41. }
  42.